package com.xxxx.server.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author : ymd
 * @Date : 2020/10/16 0016 16:54
 * @Version 1.0
 * @Description : 消息对象
 */
@Data
@ApiModel(value = "Msg对象", description = "消息载体")
public class Msg {
    @ApiModelProperty(value = "发消息者",required = true)
    private String from;
    @ApiModelProperty(value = "收消息者",required = true)
    private String to;
    @ApiModelProperty(value = "消息体",required = true)
    private String content;
    @ApiModelProperty(value = "当前时间",required = true)
    private LocalDateTime time;
    @ApiModelProperty(value = "用户姓名",required = true)
    private String fromName;
}
